import axiosInstance from '@/utils/request'
import { IPageListParams, IPageListRow } from '@/types/article'
import { IApiResult, IPageListResult } from '@/types'
import { IChannelList } from '@/types/channel'
const config = require('@/config/index')

const api = {
  getAllList: () => {
    return axiosInstance<IApiResult<IChannelList>>({
        url: config.API_URL_PREFIX + '/channels',
        method: 'get'
    })
  }
}

export default api
